package com.zh.common.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * code is far away from bug with the animal protecting
 * ┏┓　　　┏┓
 * ┏┛┻━━━┛┻┓
 * ┃　　　　　　　┃
 * ┃　　　━　　　┃
 * ┃　┳┛　┗┳　┃
 * ┃　　　　　　　┃
 * ┃　　　┻　　　┃
 * ┃　　　　　　　┃
 * ┗━┓　　　┏━┛
 * 　　┃　　　┃神兽保佑
 * 　　┃　　　┃代码无BUG！
 * 　　┃　　　┗━━━┓
 * 　　┃　　　　　　　┣┓
 * 　　┃　　　　　　　┏┛
 * 　　┗┓┓┏━┳┓┏┛
 * 　　　┃┫┫　┃┫┫
 * 　　　┗┻┛　┗┻┛
 *
 * @version 1.0
 * @Description : 限制地区检测的日志实体类
 * @Author : chenfei
 * @Create in : 2020/10/27 15:40
 */
@Data
public class AreaInterceptLog extends BaseRowModel implements Serializable {
    private static final long serialVersionUID = 3352200580203153244L;

    @ExcelProperty(value = "请求方法",index = 0)
    @ApiModelProperty(value = "请求方法", name = "method")
    private String method;

    @ExcelProperty(value = "方法简称",index = 1)
    @ApiModelProperty(value = "方法简称", name = "notes")
    private String notes;

    @ExcelProperty(value = "参数areaCode",index = 2)
    @ApiModelProperty(value = "参数areaCode", name = "areaCode")
    private String areaCode;

    @ExcelProperty(value = "请求参数体",index =3)
    @ApiModelProperty(value = "请求参数体", name = "request")
    private String request;

    @ExcelProperty(value = "请求时间",index =4)
    @ApiModelProperty(value = "请求时间", name = "requestTime")
    private String requestTime;

    @ExcelProperty(value = "响应状态",index = 5)
    @ApiModelProperty(value = "响应状态", name = "responseStatus")
    private Boolean responseStatus;

    @ExcelProperty(value = "响应信息",index = 6)
    @ApiModelProperty(value = "响应信息", name = "responseMsg")
    private String  responseMsg;

    @ExcelProperty(value = "响应体",index =7)
    @ApiModelProperty(value = "响应体", name = "response")
    private String response;

    @ExcelProperty(value = "响应时间",index = 8)
    @ApiModelProperty(value = "响应时间", name = "responseDate")
    private String responseDate;

    @ExcelProperty(value = "创建时间",index = 9)
    @ApiModelProperty(value = "创建时间", name = "createDate")
    private String createDate;

    @ExcelProperty(value = "级别类型 1-off、2-fatal、3-error、4-warn、5-info、6-debug、7-trace、 8-all",index =10 )
    @ApiModelProperty(value = "级别类型", name = "levelType")
    private Integer levelType;
}
